package com.iot.iotplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iot.iotplus.VO.ProductCountVO;
import com.iot.iotplus.entity.Device;

import java.util.List;

public interface DeviceMapper extends BaseMapper<Device> {
        //查询当前在线的所有设备 两表连接查询Device和DeviceTopic
        public Integer countOnlineDevice(String tenantId);
        //查询所有device的count
        public List<ProductCountVO> productCount(String tenantId);
}
